Problem Note 36677: Issuing the -stop option in the JBOSS script might cause processes to continue running in UNIX environments
This issue is caused by problem in the JBoss application server's run.sh script. The run.sh script contains a loop that waits for a value from the JBoss process stating that it is stopping. However, the JBoss process returns a value that the script does not expect, so the process continues to run.
To work around this problem, you must modify the loop so that it recognizes the value.
To update the script so that the loop recognizes the value that is returned, follow these steps:
- Kill any running JBoss processes using the UNIX kill command.
- Be sure to verify that all associated processes are also stopped using the following command:
ps -ef | grep jboss
- Search for the following lines in the run.sh file that is located in the JBOSS-directory-name\bin directory.
# Wait until the background process exits.
WAIT_STATUS=0
while [ "$WAIT_STATUS" -ne 127 ]; do
JBOSS_STATUS=$WAIT_STATUS
wait $JBOSS_PID 2>/dev/null
WAIT_STATUS=$?
done
fi
- Replace those lines with the following lines:
# Wait until the background process exits.
WAIT_STATUS=128
while [ "$WAIT_STATUS" -ge 128 ]; do
wait $JBOSS_PID 2>/dev/null
WAIT_STATUS=$?
if [ "${WAIT_STATUS}" -gt 128 ]; then
SIGNAL='expr ${WAIT_STATUS} - 128'
SIGNAL_NAME='kill -l ${SIGNAL}'
echo "*** JBossAS process (${JBOSS_PID}) received ${SIGNAL_NAME} signal ***" >&2
fi
done
if [ "${WAIT_STATUS}" -lt 127 ]; then
JBOSS_STATUS=$WAIT_STATUS
else
JBOSS_STATUS=0
fi
fi
- Submit the following command, which is located in the JBOSS-directory-name\bin directory to start the JBoss server:
SASServer1.sh -start
Operating System and Release Information
SAS System | SAS Enterprise BI Server | Solaris for x64 | 4.2 | 4.2 | 9.2 TS2M0 | 9.2 TS2M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2009-09-17 13:19:46 |
Date Created: | 2009-07-31 09:38:26 |